{include file='public/head'}

<style type="text/css" media="screen">
    header {
        color: black;
    }

    .layui-table {
        margin: 0 0;
    }
    .x-body {
        min-width: 700px;
    }

    body {
        overflow-x: scroll;
    }
</style>
<body>
<div class="x-body">
    <form class="layui-form" id='mainForm' method="post" action="edit">
        <input type="hidden" name="id" id="id" value="{$Think.get.id}">
        <input type="hidden" name="order_id" id="order_id" value="{$waybill.order_id}">
        <input type="hidden" id="company_id" name="company_id" value="{$Think.get.company_id}">
        <table class="layui-table">
            <colgroup>
                <col width="120">
                <col width="150">
                <col width="150">
                <col width="120">
                <col width="150">
                <col width="150">
            </colgroup>
            <thead>
            <tr>
                <th style="width: 75px;text-align:center">商品数量</th>
                <th style="width: 75px;text-align:center">商品图片</th>
                <th colspan="4">商品名称</th>
            </thead>
            <tbody>

            {volist name="waybillGoods" id="vo"}
            <tr>
                <td style="text-align:center">{$vo.num}</td>
                <td>
                    {if empty($vo['url'])}
                    <img src="__images__/noimg.png">
                    {else/}
                    <img src="{$vo['url']}" onclick="previewImg(this)">
                    {/if}
                </td>
                <td colspan="4">{$vo.title}</td>
            </tr>
            {/volist}
            <tr>
                <td><span style="color: red">*</span>物流公司</td>
                <td colspan="2"> {$logistics[$waybill['logistic_id']]['name']|default=''}</td>
                <td><span style="color: red">*</span>配送方式</td>
                <td colspan="2">{$waybill.logistic}</td>
            </tr>
            <tr>
                <td>海关简称（英文）</td>
                <td colspan="2">{$waybill.customs_en}</td>
                <td>海关简称（中文）</td>
                <td colspan="2">{$waybill.customs}</td>
            </tr>
            <tr>
                <td><span style="color: red">*</span>面单</td>
                <td colspan="2">{$waybill.express}</td>
                <td>海关</td>
                <td colspan="2">{$waybill.coding}</td>
            </tr>
            <tr>
                <td><span style="color: red">*</span>追踪</td>
                <td colspan="2">{$waybill.waybill}</td>
                <td>发货日期</td>
                <td colspan="2">{$waybill.deliver}</td>
            </tr>
            <tr>
                <td><span style="color: red">*</span>申报</td>
                <td colspan="2">{$waybill.declare}{$waybill.declare_unit}</td>
                <td><span style="color: red">*</span>总重</td>
                <td>{$waybill.weight}克</td>
                <td>
                    {switch name="waybill.is_battery" }
                    {case value="1"}无电池{/case}
                    {case value="2"}有电池{/case}
                    {/switch}
                </td>
            </tr>
            <tr>
                <td>保险</td>
                <td colspan="2">{$waybill.insure}{$waybill.insure_unit}</td>
                <td><span style="color: red">*</span>运费</td>
                <td colspan="2">{$waybill.fee_unit}{$waybill.fee}</td>
            </tr>
            <tr>
                <td>备注</td>
                <td colspan="5">{$waybill.remark}</td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>
